package com.feelafter.index.bean;

import web.search.Searchable;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/7/13.
 */
public class SuccessNewsXm implements Searchable {
    private long id;

    private String districtNewsId;
    private String content_index;//正在索引字段，（标题+正文）
    private String content;//正文
    private String province;//省份
    private String city;//城市
    private String successful_time;//中标时间
    private String win_bid_company;//中标公司
    private String title;//标题
    private String subscriber;//招标单位
    //    地域信息:为省份与城市的结合
    private String district;
    private String win_bid_figure;//数字展示
    private String winBidFigure;//字符串搜索
    private String stime; //发布时间

    private  double score;

    public String getContent_index() {
        return content_index;
    }

    public void setContent_index(String content_index) {
        this.content_index = content_index;
    }

    public String getStime() {
        return stime;
    }

    public void setStime(String stime) {
        this.stime = stime;
    }

    public String getWin_bid_figure() {
        return win_bid_figure;
    }

    public String getWinBidFigure() {
        return winBidFigure;
    }

    public void setWin_bid_figure(String win_bid_figure) {
        this.win_bid_figure = win_bid_figure;
    }

    public void setWinBidFigure(String winBidFigure) {
        this.winBidFigure = winBidFigure;
    }

    private int status; //状态

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getId() {
        return id;
    }

    public String getDistrictNewsId() {
        return districtNewsId;
    }

    public void setDistrictNewsId(String districtNewsId) {
        this.districtNewsId = districtNewsId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getSuccessful_time() {
        return successful_time;
    }

    public void setSuccessful_time(String successful_time) {
        this.successful_time = successful_time;
    }

    public String getWin_bid_company() {
        return win_bid_company;
    }

    public void setWin_bid_company(String win_bid_company) {
        this.win_bid_company = win_bid_company;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubscriber() {
        return subscriber;
    }

    public void setSubscriber(String subscriber) {
        this.subscriber = subscriber;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    @Override
    public long id() {
        return id;
    }

    @Override
    public void setId(long id) {
        this.id=id;
    }

    @Override
    public double getScore() {
        return score;
    }

    @Override
    public void setScore(double score) {
        this.score=score;
    }

    @Override
    public List<String> storeFields() {
        return Arrays.asList(new String[]{"id","content","districtNewsId","province","city","successful_time",
                "win_bid_company","title", "subscriber","win_bid_figure","stime"});
    }

    @Override
    public List<String> indexFields() {
        return Arrays.asList(new String[]{"content_index","title","subscriber","win_bid_company","district",
                "winBidFigure","stime","successful_time"});
    }

    @Override
    public float boost() {
        return  1.1f;
    }

    @Override
    public Map<String, String> extendStoreDatas() {
        return null;
    }

    @Override
    public Map<String, String> extendIndexDatas() {
        return null;
    }

    @Override
    public List<? extends Searchable> ListAfter(long id, int count) {
        return null;
    }

    @Override
    public int compareTo(Searchable o) {
        return 0;
    }
}
